import { post,get } from '../http';


export const getDpInfo = async () =>
  await get(`/api/monitor/getQxzs`);

export const getDpJJ = async () =>
  await get(`/api/monitor/getDpJJ`);

export const getDpTrace = async () =>
  await get(`/api/monitor/getDpTrace`);

export const getYesDpTrace = async () =>
  await get(`/api/monitor/getYesDpTrace`);

export const getBkTrace = async (bkcode) =>
  await post(`/api/monitor/getBkTrace`,bkcode);

export const getMonitorAlerts = async () =>
  await post(`/api/monitor/getMonitorAlert`);

export const getBkYesTrace = async (bkcode) =>
  await post(`/api/monitor/getBkYesTrace`,bkcode);

export const getAllMonitorBk = async () =>
  await get(`/api/monitor/getAllMonitorBk`);
export const getAllDpInfo = async () =>
  await get(`/api/monitor/getAllQxzs`);

export const getBkStockList = async ({ jyr,bkcode }) =>
  await post(`/api/monitor/getListStock`, { jyr,bkcode });



export const getNewBkList = async ( jyr ) =>
  await post(`/api/stock/getMonitorBks`,  jyr );


export const getAllBkList = async (count: any) =>
  await post(`/api/monitor/getListBk`, count);





